edit device to deviceId