use mongodb native iteration