oops. use plan_code not plan.name