tried adding a method to speed up walking the tree, but it didnt help