splitting out templates