tree: make attributes private