separated the namespaces between stats, histograms, and sub-namespaces
updated version