Optimization

remove repetitions in Ts