restore root to $ method