added $rootScope