remove indices in C++