assign cid to template for hook id