fixed the average