changed argument order of iterator functions