update matching method