added multinomial