hattemplate changes