loops and scopes and expressions, oh my!