make iterator use C++99 compatible