change range for loop