Improve the histogram-func#3