internal histogram support