implemented timer event for simulation