change path code in AVL.