simplify the iterator declaration