added template comparison