This line gets the same plot result as your loop
aa = Ref(high,-199)*sqrt(199);
But for next questions go here first.