cleanup in ditclasses