input file correction