changed the outputs to be mean and standard deviation