removed add method from node class