added histogram methods