added multinomial back to age comp function