working on average and std dev plots