remove duplicate histograms code from user-big