while () {} now works