tidy the file header