optimizations in assembly