ensure data is dict in _process_each_data