iterator magic sample