fixed input file issue