added templates to var