looping problem

It is worth pointing out that at no point in this thread did you
A) mention which version you were using
B) mention that you were using a Serial.flush
C) post full code.