debugging of segment class