template and style refinements