added template fit class