finish new list-of-lists implementation