It's better not to pass `ac` to this function. This function is only iterating through the data. Makes the intent clearer.