input file fix