implemented iterator for child elements