template begins