drop unnecessary variable in list_devices