adding avgs and plot