edits the file