update to execute headder
removed redundant code