customized the template definition