replaced macaddress to device id