add inorder method