template works