link list modified for tree