adding segment