inverted_index basically working