add deviceid and newid