I think I fixed the input file check