update the heading of the file