tidier code plus 90 percent mass of the gaussian