simplify templates.class