removed minimum segment length option.