add compare logic for get iterator