remove indices and tables