Clean up ctd