Removes duplicate mean fn