you should have started at 9 and added one, then u could just test while %i