optimizations made for performance reasons