more changes to output csv file format