checking a file