change the definition of histogram from beginJob to beginRun