integrated the template