forgot to empty the newKnownDevices array