minor refactorings in .node() and .list() methods