formatting of output files