finalized batchAPI