updates. Histogram gradients seems to be working.