add average and std dev