complex patching