correcting cpp