added a helper function that allows access to the private tree