clean up the patch