add two new functions to myiter.py