changed number of arguments in iterator constructor to 1