add: segment, test for segment