minor changes
split to cpp segment.h
split to cpp segment.h [2]
minor idea test
minor changes