new functions for working with lists of lists