applyPatch