fixed some bugs. simplified necc_node()