check_new_matches function