adapted the template file