more performance optimizations.