fixed rootscope to be a constant