maintain min/max seen in histogram