figuring out templates