adding a newline at the end of the file