to make getdevicedata ok