eliminated newline at end of output files