added a variable to index template