save time on multinomial