adding variables to the template