fixed output file format