passing While loops