updating how template is initialized in collection; it is an array instead of an object