fixing algorithm3D matching method