added bulk_write