move scope.apply