adjust the template