Creating correct types for collections