refactoring, toText() (Tree2D) fixed