modify to std c++