fixing update frequency (was off by 1) for iAvg