trying to debug the tree issue