modified for new tree dependency