keying vars for template