implemented custom terator that supports lopping with dto objects