added histogram, untested