get iterator working