bug fix - referring to tree in instance