added variables to template