update histogram ranges