optimize the source code