fixed out_mean