a while loop seems like the only way to do this..