regenerate cpp file