use new getDistribution API