rm on segments