make histc a method of hist