fixed template output class