doing some whiles