modify template typename declaration class with typename