added logic for linked collections for #3007