debug changes to avg_dist_sumarry