i is always 0 in that loop. Removed it.