Edit scopes of variable