getting the device to connect to