initialize codeGenerator