check for the correct input file