removed unnecessary templating of the node class. gets template type from class it is nested inside.