renamed display() to segment()