modified histogramSummarizer.py