ChosenCloud modification :
getting the providers before the while loop