transformer base class