update the model to text transformation