use some -O3 optimizations