fix bug do/while loop - all functions need a boolean returns