add device id into factory class