add WHILE loop