while loops become for loops