got the tree comparison in there correctly