adding the "contains" checking for the collection