check the file