changed tree traversal order