clearing the end of the file