taking out tree reference