added sample_mean