conversion to cpp