to pass getdevicedata first ok