implemented perp. segment for the GUI