add code optimization tool