replacing setTTVariables and making it private