modify device data callback