get indexing to work