i see. but `++it` is called three times in the following. please check `it==xxx.end()` each time