makehist changed to include two hists