change source format to C++