added histogram support
added histogram