fixed problem with input file