yet another speed optimization.