apparently you can't declare loop counter inside the for loop on linux, meh