testing optimizations