allows variable number of distributions.