better var scoping.