start spline code ...
some zero intervals -> added always start and end