add updateAverageDeviation