clean up eof new line