update avgPeak