range handling in show_root() and show_head()