simulation is now working