update average data window