all for(int i...)'s removed