indexing method