removed double creation of nodeinfo struct