joint smoothing wiht spline