change device type