fixes 1
added while loop support