or just put INC before rest of code in while loop, same thing. just a matter of preference
and yours needs <= i think