added comments for multinomial