v2.0 update segment and clear