updated histogram so that bins do not have to be set when using preloaded results