iterator part changed, now program is compiling, still something is wrong