avoid printing newline at end of file