WHILE loop experssion fixed