cleaning up patches