some more gen code (while == !=)