change sentence matching method