modify cpp main