notes on $scope