checks file