clean up patch methods