moving histograms to beginRun