made @hat instance variable consistant in hats_controller