ah wait, i see the problem. `new_primary` should be `future_primary`. sorry, commented before looking at the function beforehand.