checking the file