redo template conditional