added inventory batches and inventory