correct inorder to preorder