adding eof newline