remove rootScope dependency