added histogram
added max