improving the logic of joint resurrection