almost finished indexer