building the distribution