add reweighting