datastructures and scoping.