added histogram for new terms
merged from orig
pulled form origin