changed device to thing