template begining