using new function clear_match_pri()