added templetize() and templetizeCollection()