added template working