move the reweighting out of the runPlotter