fixing input file