update index with range method