combine and rewrite batch-add