basic iteration with each