added segmentxmax