finish histograms scripts.