updating in batch