some iterator/array problems