apply the patch