in particular, do not mingle the segment index and the relative position within the segment into a single number anymore.