never use while loops in your code. Only do FOR loops or FOR EACH. While loops are old school programming which are very brittle. This looping techinque can cause you infinite loops