working to average and plot coutputs