looping over the whole data model