looping through objects to get meshes