compiling WHILE