update the util to take a list (any other place that would use that should be refactored)