some instruction optimizations