Changing the iterate to Set