added template comments