some formatting to output file