device id conditional