adding explodeTree helper function