fixing input files