got while statements working