added extend segment