adding cubic splining
cubic splines seem to be working