Finding the perfect fitting hat