updates for TransformText. relate to #1