slight changes for output files more convenient for plotting