fix typo
rewrite with c++