use execute_batch to do the whole lot in one go