get histogram