removed $scope before attempted factory call