removing the extra newline at the end of the file