added histogramming code for verification of one event