cleanup ctd.