don't use C99 style for loop declaration