speedups and numerical stability