use cached mean on math