Make segments non-overlap