addfaction template