revise plan-upgrade