fix file format of output