for C++ code