changed hists class to allow for varying cr index