isDeviceSupported function completed