minor fix for cpp