Update scope.ts