speed optimizations.