edits last line