updated output file format