check_match_table function

Replace the names use match table