removed {} after $scope function