correction in cpp generator