change api.cpp