included all multinomial functions