I think you should indent this line one more to the right. ;-) It is outside the while loop.