outline for cpp
modify for convert adjust