gramma improvement for batch conversion