static code optimization