clean up the header