modified simulation.sh