beging of first template