connecting to template1