worked more on TMS window