change this to $scope