did work on batch inferenece