removing position info from api.cpp