refactored CheckFile()