Optimization

removing R which are not in Ts