update matching group