improve the goto(root) performance