full template replacement