Change collection to collectionType