no longer looping through templates