distinguish scopes and variable scopes