simplify cppgen