updating the information at the beginning of the file