passing template variables