correcting scopes