added method for identifying the content of node