work with tree structures
more work with tree structures