add nodes after links to have them on top