prepend @ to variable names in template to avoid deprecation warnings