start calculating std of histograms