clean up patch