The secret ingredient is hats