can't declare in for loop for pre c-99 compilers