fixed loop of simulation