clean up the doce.