a few touches; more explanation for var scoping