publishing the template