bugfix where intervals were not collapsed: solved with overlapping intervals instead...