adding newline to eof