clean up patches