added histogram plot