cleaning up the file