added code to vary bar colors in histograms