added corpus and multinomial