renamed DocTrait to TDoc