get segment