added missing teplate varibl;e