added support for multiclass labels