added check for collection type