modify range of loop