revamp fixed header function