removed some redundant code in showtree