change devices to device