adding histogram