fixed error in parabolic function