changed to multinomial