func that should change args to fit for c++