iterator tricks