changing equation of straight line