changed order to find breakpoints before plotting hists