adding nls to smoother