get rid of do/while loop, gack!