clean print of nodes and leafs