made dy0 and y0 into variables