template stage