format output file