fix duplicate cpp