chenged prompt with while