added template utils.