tree getter