removed while loop from run.sh