fix the iter loops.
change the API.