generalize getting distribution info