adding a correction from Andrew to the truncating of histograms to remove infinite points in shift up/down histograms