design of TTP segment structure.
Merge with master