new var and templates