update matching rules