change container to use iterator_to_array()