A new look at reweighted message passing