some more robustness to enumerate