devices.index number of devices used switched to available devices