changed containers to take lists instead of tuples