change input file format