fixed c++ syntax