changed to rootscope