Need to check here if hists is not None