Changed the behavior of loop from do{...}while() to while{...}