add check for binary classification