replaced variables in template