make the nodeName method public