add some cpp code