fixed getDistribution