issue with indexing