optimization of code field