tabify and replacing for each with for(int i...