removed rootscope reference