change for loop to while