switched over to a map for the nodes