creating final average data