set segment length(fix)