adding node struct