changing to cpp