get & set segment