input file formatting