start to convert major to cpp