ugly multinomial logistic regression