nits:
for (int i
++i