general updates for histogramming