renamed: TemplatePart -> Segment