correct notation of variable in templates