use BatchMakerFunc in example