added newline at the end of last line