added range to the indexing