segments and segment view