add a collection check