No ticket: use while loop instead of for-loop