while loop for results