corrected references to tree