updated method to reflect . indexing