add variables to templates