removed unused $rootScope