modified device_details method