reapplied scope.apply to set location