fixed data issue with finding avgs