modified simulation scirpts