modified:   correct the histogram plot