simplify templates