tr simulation is now working