checking for wrong file