loop through all the objects