formatting the nodes