added better logic to lookAtDevices()