change dual_device to device_count