modify format of file