going back to the old package for calculating mean and standard deviation