add scope.apply