more cpp code