mini-batch option is added