cpp works well