addVar for scalar variables