added a method of creating successors inside the node