fixed for-loop

i wasn't incremented