fix parameter count and start special case of nclass == 1