eliminate the "ts_context" from the environment, by implementing
its function using the "tts_context"