added new line before eof