scoping of variables