added check_file