corpus cleanup