update match rules