added vars to templates