extraction and indexing