Update run.sh

added rate sampling