indexing for completion