simplify class T constructor