cubic smoothing calculating properly, but still not sufficient