fixing batch_insert