changed the parabola calculation slightly