fixed input file problem