figuring out while conditions