moved device name to class