added naming functionality to nodes