Smoothing the curve