passin variables to template