all teh template writing