modify histogram