modified the template file