changed token_set_match to only run once