templates working