setupSPSegment in constructor