added a function to display a node