fixing c++ note issues