switched to c++