support for batch categorical