now there is the separation into leaves, links and groups