if to while.