remove changes to preorder_traversal