use my own mean and std functions