add for "template" case