extend to work on output of cleantermini