why is the `listNodes()` here necessary?