add segments