sawtooth and some rendering improvements by changing Histogram.