version 5 while+char