trooper upgrade function added