Update device.cc