fixing bug I added - random y-values work again