removed upgrade function