rename variables, for(int a:A) has compile error somehow