made new matching method