set typeofresource collection=yes for collections