update example related to segmented stacks