optimize source code