usage of new collection() function