moved init_node.c functions to node_data.c