Improve the histogram-func#2