added smooth histogram