extend_segment_eligible function