modify the template file