added a minimum segment size for a segment to be added