modified distr func.