doesn't the last line in the block handle the 'while' part of this?