fix my mean function