debugged both indexer