renamed _templateSession to _templateVar