add the function to display the hierarchy tree and uniformize the call from the