added histogram of data