fixed 'for(int i ' that made strict compilers complain