support iterator
fix iterator caused size reduce problem