device info function added