simplify class template