ORGONIZED CODE for SegmentATON