update averages