method inorder