finished testing adaptSegments