set the average of the device