[CHANGED] first functionating version using continuesly distributed interval segments