support for iteration(while construct)