use iterator to array for node->getReferences