accept empty lists of nodes