added support for binary classification