updating xpatch