add templates in tempalte need to be dealed with