new utility function to add cubic smoothing splines to models