added setCollection method