added changes to node class