changed text generation