rootscope added...need to modify it