adds multuple segments