modify:reorganize the linkstack